package com.suoyue.store.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Order implements Serializable {
    private Integer oid;
    private Integer uid;
    private Integer pid;
    private Integer num;
    private Double total_price;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date pay_time;

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", uid=" + uid +
                ", pid=" + pid +
                ", num=" + num +
                ", total_price=" + total_price +
                ", pay_time=" + pay_time +
                '}';
    }

    public Date getPay_time() {
        return pay_time;
    }

    public void setPay_time(Date pay_time) {
        this.pay_time = pay_time;
    }

    public Order(Integer oid, Integer uid, Integer pid, Integer num, Double total_price, Date pay_time) {
        this.oid = oid;
        this.uid = uid;
        this.pid = pid;
        this.num = num;
        this.total_price = total_price;
        this.pay_time = pay_time;
    }

    public Order() {
    }



    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getTotal_price() {
        return total_price;
    }

    public void setTotal_price(Double total_price) {
        this.total_price = total_price;
    }


}
